import httpInstance from '@/utils/http'

// 获取首页轮播图
export const getHomeBanner = (params = {}) => {
    const { distributionSite = '1' } = params
    return httpInstance({
        url: '/home/banner',
        params: {
            distributionSite
        }
    })
}

// 获取新鲜好物
/** 规范注释
 * @description: 获取新鲜好物
 * @param {*}
 * @return {*}
 */
export const getHomeNew = () => {
 return httpInstance.get('/home/new')   
}

// 获取人气推荐
export const getHomeHot = () => {
    return httpInstance.get('/home/hot')
}

// 获取产品区块
export const getHomeProduct = () => {
    return httpInstance.get('/home/goods')
}